Skip to content

[SPIRV] Allow sampled type to be half for universal#7252

Merged
s-perron merged 3 commits intomicrosoft:mainfrom
s-perron:i6987
Mar 24, 2025
Merged

[SPIRV] Allow sampled type to be half for universal#7252
s-perron merged 3 commits intomicrosoft:mainfrom
s-perron:i6987

Conversation

@s-perron
Copy link
Copy Markdown
Collaborator

We have a check that the sample type for an image cannot be a 16-bit
float. This is true for Vulkan, but not true for general spir-v.

We modify this check to only apply when the target env is vulkan. Wew
also move the check to spirvemitter where the error handling is better.
In its current location, the compiler continue to run with an unexpected
nullptr.

Fixes #6987
Fixes #6989

We have a check that the sample type for an image cannot be a 16-bit
float. This is true for Vulkan, but not true for general spir-v.

We modify this check to only apply when the target env is vulkan. Wew
also move the check to spirvemitter where the error handling is better.
In its current location, the compiler continue to run with an unexpected
nullptr.

Fixes microsoft#6987
Fixes microsoft#6989
Comment thread tools/clang/include/clang/SPIRV/FeatureManager.h Outdated
Comment thread tools/clang/lib/SPIRV/FeatureManager.cpp
@s-perron s-perron enabled auto-merge (squash) March 24, 2025 18:46
@s-perron s-perron merged commit 94596e1 into microsoft:main Mar 24, 2025
12 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in HLSL Roadmap Mar 24, 2025
@s-perron s-perron deleted the i6987 branch May 28, 2025 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[SPIR-V] Crash when using sampler on half texture [SPIR-V] Support Texture2D<half> in universal SPIR-V

3 participants